﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/include/context.jsp" %>
<form action="${ctx}/warehouse/exchange/save" method="post"  style="margin: 0px;"  onSubmit="return Validator.Validate(this,3)">
	
	<input type="hidden" name="inventoryExchange.id" value="${inventoryExchange.id}">
	<table cellspacing="0" cellpadding="0" class="form-grid">
		<tbody>
			<tr>
				<td style="text-align: right; padding-right: 3px; width: 30%;">来源仓储：</td>
				<td>
					<select name="inventoryExchange.sourceWarehouse.id">
						<c:forEach var="warehouse" items="${chooseWarehouse}" varStatus="status">
							<option value="${warehouse.id}"> ${warehouse.code } -  ${warehouse.name } </option>
						</c:forEach>
					</select>
				</td>
			</tr>
			<tr>
				<td style="text-align: right; padding-right: 3px; width: 30%;">目的仓储：</td>
					<td>
					<select name="inventoryExchange.indentWarehouse.id">
						<c:forEach var="warehouse" items="${chooseWarehouse}" varStatus="status">
							<option value="${warehouse.id}"> ${warehouse.code } -  ${warehouse.name } </option>
						</c:forEach>
					</select>
				</td>
			</tr>
			<tr>
				<td style="text-align: right; padding-right: 3px; width: 30%;">选择产品：</td>
				<td>
					<select name="inventoryExchange.product.id">
						<c:forEach var="product" items="${chooseProduct}" varStatus="status">
							<option value="${product.id}"> ${product.productCode } -  ${product.productName } </option>
						</c:forEach>
					</select>
				</td>
			</tr>
			<tr>
				<td style="text-align: right; padding-right: 3px; width: 30%;">产品数量：</td>
				<td><input type="text" name="inventoryExchange.amount" value="${inventoryExchange.amount}"  size="15" dataType="Double" msg="必须是数字"/></td>
			</tr>
			<tr>
				<td style="text-align: right; padding-right: 3px; width: 30%;">状态：</td>
				<td>
					<select name="inventoryExchange.invertoryOperation">
							<option value="IN" >调入</option>
							<option value="OUT">调出</option>
					</select>
				</td>
			</tr>
		</tbody>
	</table>
			
	<div class="window_footer"><input type="submit" value="确定"></div>
</form>

<%@ include file="/include/script.jsp" %>

	
